from sys import argv
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication,QMainWindow

class Ui_CtlWin(QMainWindow):

    def __init__(self):
        super(Ui_CtlWin, self).__init__()
        self.setupUi(self)

    def setupUi(self, CtlWin):
        pass

    def retranslateUi(self, CtlWin):
        pass


def main():
    app = QApplication(argv) # sys.argv即命令行参数
    mainWindow = Ui_CtlWin() #新建一个主界面
    mainWindow.show()	#显示主界面
    exit(app.exec_()) #进入消息循环

if __name__ == '__main__':
    main()